/*
 * @Author: your name
 * @Date: 2020-11-25 14:51:20
 * @LastEditTime: 2020-11-26 18:58:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ITL_MES2.0_WEB\src\api\service-module\quality\nc-code.js
 */
import request from '@/utils/request'
/**
 * 查询-代码自定义数据
 * @param getNcCode
 */
export function getNcCode() {
  return request({
    url: `md/commonCustomDatas/getNcCodeOrderCustomData`,
    method: 'get'
  })
}
/**
 * 查询-不良代码组初始化
 * @param getNcGroupVoList
 */
export function getNcGroupVoList() {
  return request({
    url: `md/ncCodes/getNcGroupVoList`,
    method: 'get'
  })
}
/**
 * 查询-查询不良代码数据(好多字段啊)
 * @param getNcCodeData
 */
export function getNcCodeData(data) {
  return request({
    url: `md/ncCodes/query`,
    method: 'get',
    params: data
  })
}
/**
 * 保存-保存不良代码数据(好多字段啊)
 * @param saveNcCodeData
 */
export function saveNcCodeData(data) {
  return request({
    url: `md/ncCodes/save`,
    method: 'post',
    data
  })
}
/**
 * 删除-删除不良代码数据
 * @param deleteNcCodeData
 */
export function deleteNcCodeData(data) {
  return request({
    url: `md/ncCodes/delete`,
    method: 'get',
    params: data
  })
}
